package plateau;

public class Deplacement {

	private String direction; // N, E, S, W ou NN, NE,N, EE ...
	private int posXinit;
	private int posYinit;
	private Plateau plateau;
	
	public Deplacement(String direction, int posX, int posY, Plateau plateau) {
		this.direction = direction;
		this.posXinit = posX;
		this.posYinit = posY;
		this.plateau = plateau;
	}
	
	private boolean verifDeplacementPossible (String direction, int x, int y) {
		
		if(direction == "N") {
			if(this.plateau.matBarriere[dep.posXinit-1][dep.posYinit] != 2 &&
					this.plateau.matBarriere[dep.posXinit - 2][dep.posYinit] != -1){
				return true;
			}
			else
				return false;
		}
		if(direction == "NE") {
			if(this.plateau.matBarriere[dep.posXinit-1][dep.posYinit] == 0 ||
					this.plateau.matBarriere[dep.posXinit-1][dep.posYinit] == 1) {
				
			}
		}
	}
	
	private boolean verifBarriere(String diretion) {
		if(direction == "N") {
			
		}
	}
}
